import request from '@/utils/request'

// 新增客资
export function insertZkwlResourcePC(data) {
  return request({
    url: '/PC/ZkwlResourcePC/insertZkwlResourcePC',
    method: 'post',
    data: data
  })
}
// 搜索客资详情
export function selectAllkzs(query) {
  return request({
    url: '/allkz/selectAllkzs',
    method: 'get',
    params: query,
    timeout:6000000,
  })
}
// 查询客资已分配的商家
export function findfenpei(data) {
  return request({
    url: '/allkz/findfenpei',
    method: 'post',
    data: data
  })
}
// 客资详情列表
export function findOne(data) {
  return request({
    url: '/kz/findOne',
    method: 'post',
    data: data
  })
}
// 修改客资列表
export function change(data) {
  return request({
    url: '/allkz/change',
    method: 'post',
    data: data
  })
}
// 查询单个客资详情
export function findOneKz(data) {
  return request({
    url: '/allkz/one/findOne',
    method: 'post',
    data: data
  })
}
// 查询所有可以分配商家的信息
export function findAllShopa(data) {
  return request({
    url: '/allkz/findAllShop',
    method: 'post',
    data: data
  })
}
// 客资分配商家
export function kzfenpeishangjia(data) {
  return request({
    url: '/allkz/kzfenpeishangjia',
    method: 'post',
    data: data
  })
}
// 有效审核
export function youxiaoshenhe(data) {
  return request({
    url: '/allkz/youxiaoshenhe',
    method: 'post',
    data: data
  })
}
// 有效审核
export function selectcountKZ(data) {
  return request({
    url: 'allkz/selectcountKZ',
    method: 'post',
    data: data
  })
}
// 派单员列表
export function selectAllpaidan(data) {
  return request({
    url: 'allkz/selectAllpaidan',
    method: 'post',
    data: data
  })
}
// 客资列表导出
export function ExcelstAllkzs(query) {
  return request({
    url: '/allkz/ExcelstAllkzs',
    method: 'get',
    params: query,
    timeout:6000000,
  })
}
// 客资列表导入模板
export function importTemplate(query) {
  return request({
    url: '/allkz/importTemplate',
    method: 'get',
    params: query
  })
}
// 客资列表导入
export function importData(data) {
  return request({
    url: '/allkz/importData',
    method: 'post',
    data: data,
    timeout:6000000,
  })
}


// 商家跟进记录
export function getKzShopLog(kzId) {
  return request({
    url: `/kz/getKzShopLog/${kzId}`,
    method: 'post',
  })
}


// 平台跟进记录
export function getPtKzChangeLog(kzId) {
  return request({
    url: `/kz/getPlatformKzLog/${kzId}`,
    method: 'post',
  })
}

//修改用户状态
export function changeKzStyle(data) {
  return request({
    url: `/kz/changeKzStyle`,
    method: 'post',
    data:data,
  })
}


//获取操作员列表
export function getCzUserList(param) {
  return request({
    url: `/PC/SysUserPCController/getCzUser`,
    method: 'POST',
    params:param
  })
}

